package com.hwl.demo3.service.impl;

import com.hwl.demo3.service.ICharacter;

/**
 * 服饰类
 *
 * @author sentry
 * @since 2023-02-28
 */
public class Finery implements ICharacter {

    protected ICharacter component;

    public void decorate(ICharacter component) {
        this.component = component;
    }

    @Override
    public void show() {
        if (this.component != null) {
            component.show();
        }
    }
}
